<form method="POST">
    <input type="text" name="add" value="localhost" placeholder="addresas"/>
    <input type="text" name="por" value="389" placeholder="port"/>
    <input type="text" name="dc" value="dc=nodomain" placeholder="dn=nodomain"/>
    <input type="text" name="un" value="admin" placeholder="cn=admin"/>
    <input type="password" name="pass" value="" placeholder="password"/>
    <input type="submit" name="ok"/>
</form>

<?php
require_once("../ldap.class.php");

if (isset($_POST['ok']))
    //_construct($host, $domain, $username=null, $port="389") {
    $a = new LDAP($_POST['add'], $_POST['dc'], $_POST['un'], $_POST['pass']);
    //$a = new LDAP("bla", $_POST['add'] , $_POST['por'], $_POST['dc']);
    echo $a->getResult();
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>